home *** CD-ROM | disk | FTP | other *** search
- Path: verkko.uwasa.fi!news
- From: mkuljukk@walli.uwasa.fi
- Newsgroups: comp.lang.c
- Subject: Beginner port question.
- Date: Thu, 14 Mar 1996 20:55:12 GMT
- Organization: University of Vaasa, Finland
- Message-ID: <4ia10s$3de@verkko.uwasa.fi>
- NNTP-Posting-Host: walli.uwasa.fi
- X-Newsreader: Forte Agent .99b.112
-
- I am trying to make pc- speaker to beep by giving the port 97
- value 79. According to my C tutorial, this should do it. It don't
- however, so where is the problem?
- ______________________________________
-
- #include<stdio.h>
- #include<conio.h>
- void main (void)
- {
- int save;
- int count=0;
- save = inp(97);
- outp(97,79);
- while(count<10000);
- outp(97,save);
- }
- --
- Mikko Kuljukka
- pitkΣkatu 46 b 27
- 65100 Vaasa
- puh:961-3123492
-
-